#! /usr/bin/env python
# -*- coding: UTF-8 -*-

from report import SimpleReport
from report.lib import charts

report = SimpleReport()

report.set_title("红点性能测试")
report.set_summary("""
测试机：红米Note4X
""")

maincity = charts.LineChart(title="主城界面", width="1500")
maincity.add_x_axis([i for i in range(1, 61)])
maincity.add_series("有红点",
                    [49.54, 54.1, 57.72, 52.5, 51.09, 49.66, 50.43, 54.07, 57.84, 53.51, 52.78, 56.62, 56.22, 51.96,
                     52.94, 52.66, 50.53, 54.6, 58.83, 52.31, 48.59, 55.79, 58.16, 56.38, 50.48, 51.97, 53.35, 55.21,
                     51.39, 59.94, 60.1, 50.28, 51.17, 50.31, 54.37, 49.74, 57.18, 58.88, 50.89, 50.13, 54.95, 53.89,
                     52.6, 57.1, 56.58, 53.5, 48.26, 56.76, 53.81, 52.75, 51.9, 51.34, 54.1, 46.35, 44.15, 57.9, 59.03,
                     52.39, 51.73, 51.76])
maincity.add_series("没有红点",
                    [58.39, 56.75, 52.68, 57.14, 53.11, 54.06, 57.99, 49.7, 53.81, 54.8, 54.58, 59.91, 60.47, 53.28,
                     56.71, 56.41, 48.75, 59.14, 59.28, 55.94, 55.8, 53.83, 53.06, 53.41, 56.6, 55.53, 53.29, 53.75,
                     52.82, 57.16, 55.52, 53.17, 51.04, 53.22, 48.64, 59.53, 55.46, 54.45, 55.4, 50.78, 55.58, 42.7,
                     60.16, 59.52, 51.39, 54.48, 54.22, 52.27, 59.44, 51.27, 49.7, 51.46, 52.66, 56.33, 52.72, 60.23,
                     59.38, 52.3, 54.32, 53.39])

team = charts.LineChart(title="队伍界面", width="1500")
team.add_x_axis([i for i in range(1, 61)])
team.add_series("有红点",
                [52.24, 51.5, 54.16, 50.46, 48.73, 54.96, 51.6, 51.66, 55.97, 53.99, 53.12, 52.87, 50.75, 60.19, 56.55,
                 51.1, 54.97, 52.36, 53.24, 54.78, 50.47, 59.74, 58.57, 54.85, 50.87, 49.78, 52.15, 54.35, 45.18, 56.32,
                 59.72, 51.6, 48.88, 44.69, 53.96, 48.96, 46.52, 58.53, 56.59, 47.49, 54.31, 55.03, 51.46, 57.92, 58.59,
                 52.24, 35.1, 59.11, 57.89, 54.6, 47.77, 53.72, 55.5, 54.1, 51.0, 50.35, 53.48, 53.15, 49.73, 51.12]
                )
team.add_series("没有红点",
                [52.56, 60.31, 59.56, 54.64, 55.11, 49.49, 54.69, 50.51, 51.35, 52.85, 55.79, 55.72, 55.13, 52.04,
                 56.29, 51.81, 55.48, 58.5, 60.17, 55.36, 46.73, 49.59, 55.42, 53.84, 54.99, 50.97, 48.48, 49.38, 51.28,
                 56.4, 57.91, 50.75, 55.93, 51.07, 51.89, 54.83, 57.81, 49.77, 49.17, 45.03, 56.74, 60.21, 57.72, 57.27,
                 53.87, 53.16, 49.2, 54.58, 47.79, 58.63, 57.45, 55.15, 45.63, 50.66, 55.24, 49.62, 39.69, 55.32, 58.42,
                 51.98]
                )

guaji = charts.LineChart(title="挂机界面", width="1500")
guaji.add_x_axis([i for i in range(1, 61)])
guaji.add_series("有红点",
                 [59.36, 27.83, 44.8, 56.58, 53.03, 56.74, 57.45, 58.82, 49.26, 59.68, 44.54, 60.46, 51.59, 57.35,
                  42.17, 60.67, 53.88, 58.9, 46.27, 52.85, 60.46, 43.43, 15.83, 57.15, 56.32, 49.68, 60.57, 45.61,
                  56.75, 54.44, 59.46, 49.04, 59.82, 46.8, 60.86, 53.4, 59.45, 52.63, 57.45, 57.48, 47.8, 59.77, 51.74,
                  59.29, 59.85, 46.31, 57.59, 44.86, 56.45, 54.88, 49.41, 60.08, 53.63, 52.64, 52.87, 59.48, 45.05,
                  60.11, 53.7, 51.48]
                 )
guaji.add_series("没有红点",
                 [60.37, 60.28, 60.27, 60.12, 58.42, 24.96, 59.38, 56.59, 55.98, 57.35, 58.62, 51.29, 59.21, 59.28,
                  58.47, 59.32, 60.25, 60.15, 59.26, 60.46, 59.28, 59.42, 59.72, 59.48, 58.32, 60.0, 59.43, 60.64,
                  59.41, 59.41, 39.92, 60.28, 56.56, 57.32, 57.84, 59.81, 51.19, 60.27, 57.76, 59.79, 59.92, 59.96,
                  59.99, 59.71, 59.88, 58.77, 59.98, 59.97, 59.38, 59.19, 59.67, 60.37, 60.22, 60.12, 59.74, 23.42,
                  51.13, 57.29, 59.36, 58.52]
                 )

mimi = charts.LineChart(title="秘密工厂界面", width="1500")
mimi.add_x_axis([i for i in range(1, 61)])
mimi.add_series("有红点",
                [57.08, 55.94, 57.49, 54.67, 54.07, 55.26, 45.76, 53.07, 58.48, 49.65, 54.41, 49.59, 57.88, 55.65,
                 50.53, 60.01, 47.03, 60.49, 53.36, 59.36, 50.57, 58.76, 49.3, 55.12, 55.74, 52.86, 54.52, 59.78, 47.67,
                 60.21, 46.14, 59.52, 49.3, 54.94, 55.63, 54.78, 49.4, 53.99, 55.35, 57.88, 56.1, 57.6, 59.86, 44.41,
                 27.59, 56.42, 53.17, 51.98, 60.0, 45.34, 56.8, 51.29, 60.99, 49.41, 51.16, 56.63, 57.75, 47.04, 58.86,
                 42.95]
                )
mimi.add_series("没有红点",
                [60.01, 60.16, 60.03, 60.54, 60.2, 59.88, 60.52, 59.35, 59.07, 60.11, 60.49, 59.88, 59.49, 60.2, 59.87,
                 59.63, 60.35, 59.82, 59.98, 59.58, 59.93, 59.78, 59.76, 59.89, 59.94, 59.54, 60.56, 59.82, 59.48,
                 60.02, 59.84, 59.86, 59.11, 60.74, 59.78, 59.88, 58.93, 60.37, 60.21, 60.1, 59.51, 60.18, 58.82, 60.22,
                 60.05, 60.54, 59.96, 58.38, 60.02, 60.49, 60.19, 58.2, 60.32, 57.16, 53.88, 59.9, 59.89, 59.94, 60.09,
                 59.57]
                )

report.add_chart(maincity)
report.add_chart(team)
report.add_chart(guaji)
report.add_chart(mimi)

report.save()
